from pydantic import BaseModel
import time
from typing import Optional, List
import random


class Parameter(BaseModel):
    eigenvalues: List[float]
    new_values: List[float]


class Result(BaseModel):
    node_ids: List[float]


def main(param: Parameter) -> Result:
    time.sleep(20)
    random_numbers = [random.randint(1000, 9999) for _ in range(2000)]
    return Result(node_ids=random_numbers)
